package cn.com.zsw.gblog.constants;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class SysConstants {

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 5;
    /**
     * 文章查看数的key
     */
    public static final String POST_VIEW_KEY = "post:view_count";

    /**
     * 权限key
     */
    public static final String JWT_PERMISSIONS_KEY = "jwt-permissions-key";
    /**
     * 用户名称 key
     */
    public static final String JWT_USER_NAME = "jwt-user-name-key";

    /**
     * 角色key
     */
    public static final String JWT_ROLES_KEY = "jwt-roles-key";
    public static final String JWT_USER_ID_KEY = "jwt-user-id-key";

    public static final String REDIS_JWT_TOKEN_ID = "jwt:token:id:";
    public static final String REDIS_GBLOG_USER_CACHE = "gblog:usercache:";
    public static final String REDIS_OAUTH2_STATE = "oauth2:state:";
    public static final String DEFAULT_PASSWORD = "a123456";
    /**
     * 默认的角色名称
     */
    public static final String DEFAULT_ROLE_NAME = "ROLE_user";

}
